package com.aiti.lulian.service;

import com.aiti.base.core.base.service.BaseService;
import com.aiti.base.core.utils.message.Message;
import com.aiti.lulian.dto.CustomerContactsDto;
import com.aiti.lulian.dto.crm.SupplyToCRMParamDto;
import com.aiti.lulian.entity.CustomerContacts;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

public interface ICustomerContactsService extends BaseService<CustomerContacts> {

    Message insertContact(CustomerContactsDto dto);

    Message updateContact(CustomerContactsDto dto);

    Message contactPage(Page page, CustomerContactsDto dto);

    Message detailInfo(String baseId);

    Message updateListCustomerContact(CustomerContactsDto dto);

    List<CustomerContacts> getList(String customerId);

    Message updateCustomerContactsBatch(CustomerContactsDto dto);

    void createContactAndRelation(String ContactsName, String ContactsPhone, String customerId, String creator, String enterpriseId, SupplyToCRMParamDto supplyToCRMParamDto);
}